import type { Metadata } from 'next'

import { NO_INDEX_PAGE } from '@/constants/seo.constants'

import { RequestDetail } from '@/app/d/requests/[id]/RequestDetail'

export async function generateMetadata({
	params
}: {
	params: { id: string }
}): Promise<Metadata> {
	return {
		title: `Заявка #${params.id}`,
		...NO_INDEX_PAGE
	}
}

export default function RequestPage({ params }: { params: { id: string } }) {
	return <RequestDetail id={params.id} />
}
